<script type="text/javascript" language="javascript">
(function($) {
/*whatever jQuery stuff*/
	$(function(){
		menu_change("<?php echo $mode;?>");
	});
})(jQuery);
</script>
<?php echo $cat_header;?>
<div id="left_side">
	<div class="videoMenu">
		<?php if($this->uri->segment(1) != "you2playtv"):?>
		<div class="ulmenu">
			<ul>
				<li class="menu<?php echo ($this->uri->segment(2) == "new_released" || $this->uri->segment(2) == "" ? ' selected':'');?>">
					<a href="<?php echo $video_url.$this->uri->segment(1).'/new_released/'.$this->uri->segment(3);?>">ใหม่ล่าสุด</a>
				</li>
				<li class="menu<?php echo ($this->uri->segment(2) == "recommend" ? ' selected':'');?>">
					<a href="<?php echo $video_url.$this->uri->segment(1).'/recommend/'.$this->uri->segment(3);?>">แนะนำ</a>
				</li>
				<li class="menu<?php echo ($this->uri->segment(2) == "hit" ? ' selected':'');?>">
					<a href="<?php echo $video_url.$this->uri->segment(1).'/hit/'.$this->uri->segment(3);?>">คนดูมากที่สุด</a>
				</li>
			</ul>
		</div>
		<?php endif;?>
		<div class="customSearch">
			<form id="custom_search_form" name="custom_search_form" method="post" accept-charset="utf-8">
				<div class="customSearchKw">
					<input type="text" autocomplete="off" id="custom_search_keyword" name="keyword" value="ค้นหาวีดีโอ" class="textBox">
				</div>
				<div class="customSearchBttn">
					<?php echo image_asset('default/vdo_search_bttn.png','',array('id' => "custom-search-submit"));?>
				</div>
			</form>
			<div id="search_autocomplete">
			</div>
		</div>
		<div class="clearfix"></div>
	</div>
	<div class="headerTitle">
		<div class="menuTitle">
			<h1>
				<?php echo ($this->uri->segment(1) == "you2playtv" ? $dataYou2playTvName:$filter[($this->uri->segment(2) == "" ? 'new_released':$this->uri->segment(2))]);?>
			</h1>
		</div>
	<!-- Select video -->
	<ul class="selectType">
		<?php if($this->uri->segment(1) == "you2playtv"):?>
			<li <?php echo ($dataYou2playTvName == "รายการย้อนหลัง" ? 'class="active"':'');?>><a href="<?php echo $video_url.'you2playtv';?>" title="วีดีโอทั้งหมด">รายการย้อนหลัง</a></li>
			<?php foreach($dataYou2playTv as $value):?>
				<li <?php echo ($dataYou2playTvName == $value->video_type_name ? 'class="active"':'');?>><a href="<?php echo $video_url.'you2playtv/'.$value->video_type_alias;?>" title="<?php echo $value->video_type_name;?>"><?php echo $value->video_type_name;?></a></li>
			<?php endforeach;?>
		<?php else:?>
			<li <?php echo ($this->uri->segment(3) == "" ? 'class="active"':'');?>><a href="<?php echo $video_url.$this->uri->segment(1).'/new_released';?>" title="วีดีโอทั้งหมด">วีดีโอทั้งหมด</a></li>
			<li <?php echo ($this->uri->segment(3) == "thai" ? 'class="active"':'');?>><a href="<?php echo $video_url.$this->uri->segment(1).'/'.($this->uri->segment(2) ? $this->uri->segment(2):'new_released').'/thai';?>" title="วีดีโอไทย">วีดีโอไทย</a></li>
			<li <?php echo ($this->uri->segment(3) == "inter" ? 'class="active"':'');?>><a href="<?php echo $video_url.$this->uri->segment(1).'/'.($this->uri->segment(2) ? $this->uri->segment(2):'new_released').'/inter';?>" title="วีดีโอสากล">วีดีโอสากล</a></li>
			<li <?php echo ($this->uri->segment(3) == "asian" ? 'class="active"':'');?>><a href="<?php echo $video_url.$this->uri->segment(1).'/'.($this->uri->segment(2) ? $this->uri->segment(2):'new_released').'/asian';?>" title="วีดีโอเอเชียน">วีดีโอเอเชียน</a></li>
		<?php endif;?>
	</ul>
	<div class="bttDrop">
		<?php echo image_asset('default/select_bttn.gif');?>
	</div>

	<div class="type">
		<div class="listType_1"></div>
		<div class="listType_2"></div>
		<div class="listType_3"></div>
	</div>
	<div class="clearfix"></div>
	</div>
	<div id="ajax_pager"><?php echo $dataVideo;?></div>
</div>
<div id="right_side">
	<!--Module-->
	<?php
	if(!empty($module)):
	foreach($module as $value):?>
	<?php echo $value;?>
	<?php endforeach; endif;?>
</div>
<div class="clear">
</div>